package com.lhz.project.system.model.entity.base;

import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

import java.io.Serial;
import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * 登录记录参数类
 *
 * @author LiHuaZhi
 * @since 2020-06-23 17:37:15
 */
@Data
@TableName("sys_http_log")
public class HttpRecordLog implements Serializable {

    @Serial
    private static final long serialVersionUID = 692873963639387654L;
    /**
     * 访问ID
     */
    @TableId("id")
    private String id;

    /**
     * 请求地址
     */
    private String url;

    /**
     * 请求参数
     */
    private String requestParams;

    /**
     * 响应参数
     */
    private String responseParams;

    /**
     * 耗时,ms值
     */
    private Long time;

    /**
     * 请求方式,POST、GET
     */
    private String httpMethod;

    /**
     * 错误信息
     */
    private String errorMsg;

    /**
     * 错误堆栈
     */
    private String errorTrace;

    private LocalDateTime createTime;
}